void ShellSort1(int n,int* arr)
{
	int gap = n/2;
	while (gap > 0)
	{
		for(int i = 0; i < n - gap;i++)
		{
			int end = i;
			int x = arr[end + gap];
			while (end >= 0)
			{
				if (arr[end] > x)
				{
					arr[end + gap] = arr[end];
					end -= gap;
				}
				else
				{
					break;
				}
			}
			arr[end + gap] = x;
		}
		gap /= 2;
	}
}